﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;

public partial class jsPlugDemo_Jquery_Jcrop : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

        }
    }



    protected void btnSubmit_Click(object sender, EventArgs e)
    {
        if (FileUpload1.HasFile)
        {
            HttpPostedFile hpf = FileUpload1.PostedFile;

            string strFilePath = Server.MapPath("~/upload/" + hpf.FileName);

            hpf.SaveAs(strFilePath);

            Bitmap bit = new Bitmap(strFilePath);
        }


        //img.Save("", new ImageFormat());

    }
}